<template>
	<view class="person-search-container" :style="{'background-color':bgcolor}">
		<view class="person-search-box" :style="{'border-radius':radius+'px'}" @click="handleSearch">
      <uni-icons type="search" size="17"></uni-icons>
      <text class="placeholder">搜索</text>
    </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
    methods:{
      handleSearch() {
        console.log('111')
        uni.navigateTo({
          url:'/subpkg/search/search'
        })
        this.$emit('click')
      }
    },
    props:{
      bgcolor:{
        type:String,
        default:'#C00000'
      },
      radius:{
        type:Number,
        default:18
      }
    }
	}
</script>

<style lang="scss">
.person-search-container {
  height: 60px;
  // background-color: #C00000;
  padding: 0 15px;
  display: flex;
  align-items: center;
  .person-search-box {
    height: 36px;
    width: 100%;
    background-color: #fff;
    // border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    .placeholder {
      margin-left: 5px;
    }
  }
}
</style>
